package cn.ljy.common.exception.model;

import cn.ljy.common.utils.table.ExcelExceptionMessage;
import com.alibaba.fastjson.JSON;

import java.util.List;

/**
 * 自定义异常：用于处理excel上传的异常
 * 说明：用于收集excel表中错误的所有行信息
 */
public class MyExcelException extends RuntimeException {

    public MyExcelException() {
        super();
    }

    public MyExcelException(List<ExcelExceptionMessage> excelExceptionMessages) {
        super(JSON.toJSONString(excelExceptionMessages));
    }

    public MyExcelException(String message, Throwable cause) {
        super(message, cause);
    }



    public MyExcelException(Throwable cause) {
        super(cause);
    }

}

